package com.sky.gray.service.impl;

import com.sky.gray.dao.IGrayDao;
import com.sky.gray.domain.GrayUser;
import com.sky.gray.service.IGrayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GrayServiceImpl implements IGrayService {

    @Autowired
    private IGrayDao grayDao;

    @Override
    public List<GrayUser> queryUserList() {
        return grayDao.queryGrayUserList();
    }

    @Override
    public GrayUser queryUserById(GrayUser user) {
        return grayDao.queryGrayUserById(user);
    }

    @Override
    public void addGrayUser(GrayUser user) {
        grayDao.addGrayUser(user);
    }

    @Override
    public void deleteGrayUser(GrayUser user) {
        grayDao.deleteGrayUser(user);
    }

    public void updateGrayUser(GrayUser user) {
        grayDao.updateGrayUser(user);
    }

}
